﻿@{
    ViewBag.Title = "_ProductVariant_List";
}

<h2>_ProductVariant_List</h2>

<table class="yt">
    
    <tr>
        <th>
            name
        </th>
        <th>
            sku
        </th>
        <th>
            price
        </th>
        <th>
            display order
        </th>
        <th>
            published
        </th>
        <th>
            edit
        </th>
    </tr>

<!-- ko foreach: ProductVariants -->

    <tr>
        <td>
            <span data-bind="text:Name"></span>            
        </td>
        <td>
            <span data-bind="text:Sku"></span>            
        </td>
        <td>
            <span data-bind="text:Price"></span>            
        </td>
        <td>
            <span data-bind="text:DisplayOrder"></span>            
        </td>
        <td>
            <span data-bind="text:Published"></span>            

        </td>
        <td>
            <a data-bind="attr:{href: '/ProductVariant/Edit?productVariantId=' + Id()}">Edit</a>
        </td>
    </tr>    

<!-- /ko -->
</table>


<a  data-bind="attr:{href: '/ProductVariant/Create?productId=' + $root.Id()}">Create Product Variant</a>